import java.util.Scanner;
public class new1 {
    public static void main(String[] args) {
        try (Scanner scanner = new Scanner(System.in)) {
            String input = scanner.nextLine();
            int symbolIndex = input.indexOf('/');
            if (symbolIndex == -1) {
                System.out.println(reverseString(input));
            } else {
                String part1 = reverseString(input.substring(0, symbolIndex));
                String part2 = reverseString(input.substring(symbolIndex + 1));
                System.out.println(part1 + "/" + part2);
            }
        } catch (Exception e) {
            System.err.println("发生错误: " + e.getMessage());
        }
    }
    public static String reverseString(String str) {// 如果字符串为空或只有一个字符，无需反转
        if (str == null || str.length() <= 1) {
            return str;
        }
        char[] charArray = str.toCharArray();
        int left = 0;
        int right = charArray.length - 1;
        while (left < right) {
            char temp = charArray[left];
            charArray[left] = charArray[right];
            charArray[right] = temp;
            left++;
            right--;
        }
        return new String(charArray);
    }
}
